package cn.bugstack.domain.strategy.service.rule.mytree.factory.engine;

import cn.bugstack.domain.strategy.model.valobj.RuleTreeVO;
import cn.bugstack.domain.strategy.service.rule.mytree.factory.IFactoryEngine;
import cn.bugstack.domain.strategy.service.rule.tree.factory.DefaultTreeFactory;

/**
 * TODO
 *
 * @Description
 * @Author Lx
 * @Date 2024/8/5 23:34
 **/
public class FactoryEngine implements IFactoryEngine {
    //执行决策树，返回奖品
    public DefaultTreeFactory.StrategyAwardVO performce(RuleTreeVO ruleTreeVO) {
        //1.拿到treeRootNode根节点

        //2.拿到treeRootNode的nodeList

        //3.遍历循环执行Nodelogic


        //3.1.执行Nodelogic

        //3.2判断是否有nextLine，若有则根据nextLine进入到下一个node中进行logic。若没有nextLine则继续循环查找nodeList


        //4.返回奖品结果
        return null;
    }
}
